package com.cauli.manage.storage.model.dto;

import com.cauli.model.dto.BaseDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;

/**
 * @author Cauli
 * @date 2023-03-28 12:00
 * @description 存储源状态修改参数
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "StorageUpdateStatusDTO", description = "存储源状态修改参数")
public class StorageUpdateStatusDTO extends BaseDTO {
    @NotNull(message = "存储源ID不能为空")
    @ApiModelProperty("存储源ID")
    private Long storageId;

    @NotNull(message = "存储源类型（0本地 1阿里云OSS）不能为空")
    @ApiModelProperty("存储源类型（0本地 1阿里云OSS）")
    private Integer storageType;

    @NotNull(message = "存储源状态（0停用 1正常）不能为空")
    @ApiModelProperty("存储源状态（0停用 1正常）")
    private Integer status;
}
